home *** CD-ROM | disk | FTP | other *** search
- Path: sdrc.com!thor!scjones
- From: larry.jones@sdrc.com (Larry Jones)
- Newsgroups: comp.lang.c
- Subject: Re: Is it possible to #include <#defined or -D 'ed macro>?
- Date: 25 Jan 1996 16:22:59 GMT
- Organization: SDRC Engineering Services
- Distribution: world
- Message-ID: <4e8ap3$901@info1.sdrc.com>
- References: <5rbuntgqp0.fsf@ritz.mordor.com>
- NNTP-Posting-Host: thor.sdrc.com
- Originator: scjones@thor
-
- In article <5rbuntgqp0.fsf@ritz.mordor.com>, benjamin@ritz.mordor.com (Joseph Thomas) writes:
- > Does anyone know a way of having an include statement that can include
- > a file, based on a -D <MACRO_NAME> flag passed to the compiler, to
-
- #include SOURCE
-
- cc -D SOURCE='<source_a.h>'
- cc -D SOURCE='<source_b.h>'
-
- should work on any ANSI conforming compiler.
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com
- Hmph. -- Calvin
-